/**
* @file relay.h
* @brief Header file for the relay control module.
*
* This file contains the function declarations and macro definitions for controlling a relay.
* It includes initialization functions and functions to turn the relay on and off, toggle its state,
* and get its current state. It also defines the GPIO pin used for controlling the relay.
**/

#include <stdio.h>
#include <stdbool.h>
#include "ohos_init.h" 
#include "cmsis_os2.h" 

#include "iot_gpio.h" 
#include "../inc/iot_gpio_ex.h"

#define RELAY_PIN 1
#define FREQ_TIME 20000

static bool relay_state = false;

void RelayInit(void);
void relay_on(void);
void relay_off(void);
void relay_toggle(void);
bool relay_get_state(void);

